function startCourse()

{
	// check to see if cookies is enabled, otherwise, this won't work
	
	if( typeof sessionStorage == "undefined" || sessionStorage.disabled )
	
	{
	
	alert( "You must enable cookies for this course to work properly." );
	
	}
	
	else
	
	{
	
	// if it is enabled, checked to see if this course was started
	
	// if it was not able to retrieve, the key "course_started", then
	
	// then this is the first time we are running the course
	
	        if( !sessionStorage.getItem( "course_started" ) )
	
	        {
	
	        // clear the session storage
	
	            sessionStorage.clear();
	
	            // set the "key" by giving it a value.  all values are strings!
	
	    sessionStorage.setItem( "course_started", "1" );
	
	    sessionStorage.setItem( "uae", "0" );
	
	    sessionStorage.setItem( "sudan", "0" );
	
	    sessionStorage.setItem( "france", "0" );
	
	    sessionStorage.setItem( "gambia", "0" );
	      }
	
	}

}

function visitUae()

{
sessionStorage.setItem( "uae", "visited" );
showTest();


}


function visitSudan()
{

sessionStorage.setItem( "sudan", "visited" );
showTest();

}

function visitFrance()

{

sessionStorage.setItem( "france", "visited" );

showTest();

}

function visitGambia()

{

sessionStorage.setItem( "gambia", "visited" );
showTest();


}

//this function will check to see if every page was visited

// if so, show the Test link

function showTest()

{

	var uaeVisited = sessionStorage.getItem( "uae" );
	
	var sudanVisited = sessionStorage.getItem( "sudan" );
	
	var franceVisited = sessionStorage.getItem( "france" );
	var gambiaVisited = sessionStorage.getItem( "gambia" );
	
	if( uaeVisited == "visited" && sudanVisited == "visited" && franceVisited == "visited" && gambiaVisited == "visited" )
	{
	
	document.getElementById( "test-link" ).style.display = "inline";
	
	}

}